package Model;

public class Tree {

    private String treeSort;
    private int treeLifespan;
    private int treeSize;
    private double treeCostPrm2;
    private double treeEarnPrm2;

    public Tree(String treeSort, int treeLifespan, int treeSize, double treeCostPrm2, double treeEarnPrm2) {
        this.treeSort = treeSort;
        this.treeLifespan = treeLifespan;
        this.treeSize = treeSize;
        this.treeCostPrm2 = treeCostPrm2;
        this.treeEarnPrm2 = treeEarnPrm2;
    }

    public String getTreeSort() {
        return treeSort;
    }

    public void setTreeSort(String treeSort) {
        this.treeSort = treeSort;
    }

    public int getTreeLifespan() {
        return treeLifespan;
    }

    public void setTreeLifespan(int treeLifespan) {
        this.treeLifespan = treeLifespan;
    }

    public int getTreeSize() {
        return treeSize;
    }

    public void setTreeSize(int treeSize) {
        this.treeSize = treeSize;
    }

    public double getTreeCostPrm2() {
        return treeCostPrm2;
    }

    public void setTreeCostPrm2(double treeCostPrm2) {
        this.treeCostPrm2 = treeCostPrm2;
    }

    public double getTreeEarnPrm2() {
        return treeEarnPrm2;
    }

    public void setTreeEarnPrm2(double treeEarnPrm2) {
        this.treeEarnPrm2 = treeEarnPrm2;
    }

    public void printTree() {
        System.out.println("Sort: " + getTreeSort());
        System.out.println("Lifespan: " + getTreeLifespan());
        System.out.println("Cost: " + getTreeCostPrm2());
        System.out.println("Revenue: " + getTreeEarnPrm2());
    }

}
